import { UserInfoStore } from "@/stores/counter";


const setUserInfo = (userId, useName) => {
    let userInfo = UserInfoStore()
    userInfo.setUserId(userId)
    userInfo.setUserName(useName)
    userInfo.setState(true)
}


const clearUserInfo = () =>{
    let userInfo = UserInfoStore()
    userInfo.setUserId(-1)
    userInfo.setUserName("xxxx")
    userInfo.setState(false)
}


export {setUserInfo, clearUserInfo}